body {
  position: relative;
  padding-top: 50px;
  background-color: #f7fbfc;
}

.recom {
  .content {
    width: 1160px;
    margin: 0 auto;
  }
  .body-content {
    margin-top: 20px;
    .hot {
      margin-bottom: 30px;
      .left-content {
        margin-top: 10px;
        width: 900px;
        display: inline-block;
        h2 {
          margin-bottom: 15px;
          padding-right: 20px;
          .title {
            display: inline-block;
            .icon {
              margin-right: 15px;
            }
            span {
              vertical-align: -4px;
              font-size: 24px;
            }
          }
          .detail {
            float: right;
            span {
              display: inline-block;
              width: 57px;
              height: 19px;
              margin-top: 1px;
              margin-right: 15px;
              border: 1px solid #dbdbdb;
              border-radius: 5px;
              vertical-align: middle;
              color: #999999;
              font-size: 12px;
              text-align: center;
              line-height: 20px;
              cursor: pointer;
              i {
                margin-right: 5px;
              }
            }
            a {
              font-size: 14px;
              color: #42bdeb;
              i {
                margin-left: 10px;
                font-size: 22px;
                vertical-align: -2px;
              }
            }
          }
          .menu {
            display: inline-block;
            margin-left: 25px;
            li {
              position: relative;
              display: inline-block;
              font-size: 14px;
              color: #1E1E1E;
              margin-right: 28px;
              border-bottom: 3px solid transparent;
              cursor: pointer;
              &:hover {
                color: #42bdeb;
                border-bottom-color: #42bdeb;
                &:after {
                  content: "";
                  position: absolute;
                  bottom: 0;
                  left: 50%;
                  width: 0;
                  height: 0;
                  margin-left: -1.5px;
                  border-width: 3px;
                  border-style: solid;
                  border-color: transparent transparent #42bdeb transparent;
                }
              }
            }
            li.active {
              color: #42bdeb;
              border-bottom-color: #42bdeb;
              &:after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 0;
                margin-left: -3px;
                border-width: 3px;
                border-style: solid;
                border-color: transparent transparent #42bdeb transparent;
              }
            }
          }
        }
        .list {
          margin-bottom: 18px;
          li {
            display: inline-block;
            width: 160px;
            height: 162px;
            margin-right: 20px;
            overflow: hidden;
            border-radius: 4px;
            will-change: contents;
            &:hover {
              .description {
                height: 50px;
                color: #42bdeb;
                overflow: initial;
                text-overflow: initial;
                white-space: initial;
              }
              .img-contet {
                &:before,
                &::after {
                  width: 100%;
                  height: 100%;
                }
                &:after {
                  border-top-color: #42bdeb;
                  border-right-color: #42bdeb;
                  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
                }
                &:before {
                  border-bottom-color: #42bdeb;
                  border-left-color: #42bdeb;
                  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
                }
                .info {
                  transform: translateY(0);
                }
              }
            }
            .img-contet {
              position: relative;
              margin-bottom: 10px;
              overflow: hidden; // border: 2px solid transparent;
              &:before {
                display: block;
                position: absolute;
                content: '';
                bottom: 0;
                right: 0;
                width: 0;
                height: 0;
                transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                border: 2px solid transparent;
                box-sizing: border-box;
                border-radius: 4px;
              }
              &:after {
                display: block;
                position: absolute;
                content: '';
                top: 0;
                left: 0;
                width: 0;
                height: 0;
                transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                border: 2px solid transparent;
                box-sizing: border-box;
                border-radius: 4px;
              }
              >img {
                width: 100%;
                height: 100px;
                border-radius: 4px;
              }
              .info {
                display: flex;
                align-items: center;
                height: 30px;
                position: absolute;
                right: 0;
                bottom: 0;
                left: 0;
                transition: all .2s ease .2s;
                transform: translateY(30px);
                background-color: #42bdeb;
                border-radius: 0 0 4px 4px;
                img {
                  width: 20px;
                  height: 20px;
                  margin: 0 5px;
                }
                span {
                  font-size: 12px;
                  color: #FFF;
                }
              }
            }
            .description {
              width: 100%;
              height: 20px;
              margin-bottom: 5px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              transition: all .2s ease;
              font-size: 12px;
              color: #1E1E1E;
            }
          }
        }
        .resources {
          width: 880px;
          height: 120px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
    .news {
      .left-content {
        width: 900px;
        display: inline-block;
        h2 {
          margin-bottom: 15px;
          padding-right: 20px;
          .title {
            display: inline-block;
            .icon {
              margin-right: 15px;
            }
            span {
              vertical-align: -4px;
              font-size: 24px;
            }
          }
          .detail {
            float: right;
            span {
              display: inline-block;
              width: 57px;
              height: 19px;
              margin-top: 1px;
              margin-right: 15px;
              border: 1px solid #dbdbdb;
              border-radius: 5px;
              vertical-align: middle;
              color: #999999;
              font-size: 12px;
              text-align: center;
              line-height: 20px;
              cursor: pointer;
              i {
                margin-right: 5px;
              }
            }
            a {
              font-size: 14px;
              color: #42bdeb;
              i {
                margin-left: 10px;
                font-size: 22px;
                vertical-align: -2px;
              }
            }
          }
        }
        .list{
          li{
            display: inline-block;
            box-sizing: border-box;
            width: 425px;
            height: 131px;
            margin-bottom: 7px;
            padding: 10px;
            box-shadow: 0 0 5px rgb(233, 233, 233);
            &:hover{
              box-shadow: 0 0 5px #42bdeb;
            }
            dl {
              dt {
                position: relative;
                float: left;
                width: 111px;
                height: 111px;
                margin-right: 8px;
                img {
                  width: 100%;
                  height: 100%;
                }
              }
              dd {
                display: block;
                font-size: 12px;
                h3 {
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 2;
                  font-size: 16px;
                  font-weight: bold;
                  overflow: hidden;
                  color: #1E1E1E;
                }
                div:not(.view-comments){
                  margin-top: 5px;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 2;
                  overflow: hidden;
                  color: #444444;
                }
                .view-comments {
                  margin-top: 10px;
                  .right-view {
                    display:block;
                    float: right;
                    margin-top: 0px;
                    margin-right: 10px;
                    .love {
                      color: #FB7BA2;
                      i {
                        display: inline-block;
                        width: 15px;
                        height: 13.5px;
                        background: url('../img/icon-xin.png') no-repeat 0 0;
                        background-size: 100% 100%;
                        vertical-align: -1px;
                      }
                    }
                  }
                }
              }
            }
          }
          li:nth-child(even) {
            margin-left: 10px;
          }
        }
      }
      .right-content {
        display: inline-block;
        vertical-align: top;
        width: 20%;
        h2 {
          margin-bottom: 21px;
          padding-top: 5px;
          font-size: 20px;
          color: #1E1E1E;
          .ranking {
            display: inline-block;
            margin-left: 9px;
            font-size: 16px;
            color: #929292;
          }
          .data {
            float: right;
            margin-top: 6px;
            font-size: 14px;
            color: #42beec;
            span {
              display: inline-block;
              margin: 0 5px;
              opacity: .5;
              border-bottom: 3px solid transparent;
              cursor: pointer;
              &:last-child {
                margin: 0;
              }
            }
            span.active {
              position: relative;
              opacity: 1;
              border-bottom-color: #42bdeb;
              &:after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 0;
                margin-left: -3px;
                border-width: 3px;
                border-style: solid;
                border-color: transparent transparent #42bdeb transparent;
              }
            }
          }
        }
        .list {
          li {
            margin-bottom: 7px;
            dl {
              dt {
                position: relative;
                float: left;
                width: 89px;
                height: 62px;
                margin-right: 8px;
                img {
                  width: 100%;
                  height: 100%;
                }
                &:before {
                  content: attr(data-num);
                  position: absolute;
                  top: 0;
                  left: 0;
                  width: 16px;
                  height: 16px;
                  background-color: #E9573F;
                  border-radius: 0 0 5px 0;
                  color: #FFF;
                  font-size: 12px;
                  line-height: 16px;
                  text-align: center;
                }
              }
              dd {
                display: block;
                font-size: 12px;
                h6 {
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 2;
                  overflow: hidden;
                  color: #1E1E1E;
                  &:hover{
                    color: #42bdeb;
                  }
                }
                div {
                  color: #D7D7D7;
                }
              }
            }
            p {
              color: #1E1E1E;
              font-size: 12px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              &:hover{
                color: #42bdeb;
              }
              &:before {
                content: attr(data-num);
                display: inline-block;
                width: 16px;
                height: 16px;
                margin-right: 10px;
                background-color: #E9573F;
                border-radius: 0 0 5px 0;
                color: #FFF;
                font-size: 12px;
                line-height: 16px;
                text-align: center;
              }
            }
          }
        }
        .contribution-list {
          a {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #1E1E1E;
            font-size: 14px;
            &:before {
              display: inline-block;
              content: attr(data-num);
              width: 17px;
              height: 17px;
              margin-right: 13px;
              background-color: #42bdeb;
              color: #FFF;
              font-size: 12px;
              text-align: center;
              line-height: 18px;
              border-radius: 5px;
              vertical-align: -2px;
            }
            img {
              width: 25px;
              height: 25px;
              margin-right: 10px;
              border-radius: 50%;
            }
            span {
              vertical-align: -2px;
            }
            &:hover {
              color: #42bdeb;
            }
          }
        }
      }
    }
    .contribution {
      h2 {
        margin-bottom: 13px;
      }
    }
  }
  .division {
    .title {
      img {
        vertical-align: -12px;
      }
    }
  } //书包
}